package cn.webrx;

public class Lambda1 {
    public static void main(String[] args) {
        Math m = i->i*i;
        System.out.println(m.pf(9));
        System.out.println(Math.sum(3,6));
    }
}


interface Math{
    static int sum(int a,int b){
        return a+b;
    }
    int pf(int i);
}

//
//class MathImpl implements Math{
//
//    @Override
//    public int sum(int a, int b) {
//        return a+b;
//    }
//}
